from django.conf.urls import url
from django.contrib import admin
from web import models


# admin.site.register(models.Web)  #这一行注册后，admin就可以管理数据库中这类对象了

class WebAdmin (admin.ModelAdmin):
    list_display = ('title', 'timestamp')


admin.site.register(models.Web, WebAdmin)


admin.site.register(models.User)
